	$(document).ready(function() {
		$("#navbody li a").hover(
			function(){
				$(this).parent().addClass("hover");
			},
			function(){
				$(this).parent().removeClass("hover");
			}
		);
		
		$("#navbody li a").click(function() {
			$(this).parents("ul").children().removeClass();
			$(this).parent().addClass("active");
		});
	});
	
	$.fn.qtip.styles.mystyle = { 
        background: '#fffea7',
        color: '#666666',
		width:150,
        'font-size': 12,
		'font-family':'Georgia',
        textAlign: 'left',
        border: {
           width: 7,
           radius: 5,
           color: '#fffea7'
        },
        tip: 'leftTop',
        name: 'dark'
    };

	
	$(function() {
        $(".username").qtip({
            content: '<b>Login</b> to your personal member area to access our premium features!',
            show: 'mouseover',
            hide: {
                when: 'mouseout',
                fixed: true
            },
			style: 'mystyle',
            position: {
                corner: {
                    target: 'rightMiddle',
                    tooltip: 'leftTop'
                }
            }
        })
    });